package com.docmanage.am.domain;

import com.docmanage.common.annotation.Excel;
import com.docmanage.common.core.domain.TreeEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 档案柜对象 am_cabinet
 * 
 * @author pointLion
 * @date 2023-06-18
 */
@Data
public class AmCabinet extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    private Long tenantId;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 详细位置 */
    @Excel(name = "详细位置")
    private String address;

    /** 是否可用。0：启用。1：禁用 */
    @Excel(name = "是否可用。0：启用。1：禁用")
    private String status;

    /** 管理员 */
    @Excel(name = "管理员")
    private String mngerName;

    /** 管理员电话 */
    @Excel(name = "管理员电话")
    private String mngerMobile;

    private String cpath;

    private String npath;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("address", getAddress())
            .append("parentId", getParentId())
            .append("status", getStatus())
            .append("mngerName", getMngerName())
            .append("mngerMobile", getMngerMobile())
            .append("remark", getRemark())
            .toString();
    }
}
